/*****************************************************************************//*!
* file  : test.c
* creat : apleilx
* data  : 2017/03/02
*******************************************************************************/
#include "osObjects.h"                                          // RTOS object definitions
#include "touch_panel.h"
#include "guitask.h"

extern uint16_t touch_ad_x,touch_ad_y;

/*----------------------------------------------------------------------------
 *                             Gui task
 *---------------------------------------------------------------------------*/
void touch_task (void   *argument)
{   
    osDelay(ms_ticks(3000));
    touch_panel_gpio_configure();
    
    for(;;)
    {
        osDelay(ms_ticks(5));
        if(SUCCESS == touch_scan())
        {
            osMailPut(qbid_gui, GUI_MB_TOUCH_ACT);
        }
    }
}
